package com.firewolf.solr.s02_solrjbean;

import org.apache.solr.client.solrj.beans.Field;

/**
 * 要被保存的Bean，需要保存的字段上面需要加@Field注解
 * @author liuxing
 *
 */
public class MyBean {
	//需要加上这个注解，表明需要被solrj处理，
	//如果这个字段名和schema.xml中域名不同，可以给上vale值和配置文件对应
	@Field(value="id")
	private String id;
	@Field
	private String name_s;
	@Field
	private Integer socre_i;
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName_s() {
		return name_s;
	}
	public void setName_s(String name_s) {
		this.name_s = name_s;
	}
	public Integer getSocre_i() {
		return socre_i;
	}
	public void setSocre_i(Integer socre_i) {
		this.socre_i = socre_i;
	}
	public MyBean(String id, String name_s, Integer socre_i) {
		super();
		this.id = id;
		this.name_s = name_s;
		this.socre_i = socre_i;
	}
	public MyBean() {
		super();
	}
	@Override
	public String toString() {
		return "MyBean [id=" + id + ", name_s=" + name_s + ", socre_i=" + socre_i + "]";
	}
	
}
